package com.guigutool.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guigutool.reggie.dto.DishDto;
import com.guigutool.reggie.entity.Dish;

/**
 * @Author: KingWang
 * @Date: 2023/3/12
 * @Desc:
 **/
public interface DishService extends IService<Dish> {

    //新增菜品，同时插入菜品对应的口味数据，需要操作两张表：dish、dish_flavor
    public void saveWithFlavor(DishDto dishDto);

    public void updateWithFlavor(DishDto dishDto);

    //根据id查询对应的菜品信息和口味信息
    public DishDto getByIdWithFlavor(Long id);
}
